package com.lab.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lab.common.utils.PageUtils;
import com.lab.gulimall.member.entity.MemberEntity;
import com.lab.gulimall.member.vo.MemberRegistVo;
import com.lab.gulimall.member.vo.MemberUserLoginVo;
import com.lab.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author hyson
 * @email 1228841297@qq.com
 * @date 2021-12-22 14:45:45
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    public void checkPhoneUnique(String phone);
    public void checkUserNameUnique(String userName);

    MemberEntity login(MemberUserLoginVo vo);
    MemberEntity login(SocialUser socialUser) throws Exception;
}
